# Contributor: Jann - Ove Risvik <jann.ove@usaklig.com>
# Maintainer:
pkgname=infiniband-diags
pkgver=1.6.6
pkgrel=2
pkgdesc="Various infiniband diagnostic tools"
url="https://github.com/linux-rdma/infiniband-diags"
arch="x86 x86_64 ppc64le"
license="GPL-2.0-only OR BSD-2-Clause"
depends_dev="opensm-dev libibmad-dev glib-dev eudev-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.openfabrics.org/downloads/management/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="aeb7a24e16c03bdca1ab8fbd6b1fcc434dae8b96544501aa8643bf8a3a2f3f0cb529b48211f9fe2fb4c61343bfae1ffdec95cb5830da9dd396d9fe0b288b2def  infiniband-diags-1.6.6.tar.gz"
